/*
  学习目标：配置Redux调试工具
  步骤：
     1. 下包 redux-devtools-extension
     2. 配置调试工具: 工具 > 应用 > 中间件
     3. 浏览器装插件
     4. 重启项目和浏览器
*/

import { legacy_createStore as createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from './reducer/index';
import { applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

const store = createStore(
  rootReducer,

  composeWithDevTools(applyMiddleware(thunk))
);

export default store;
